import request from '../utils/request';

const CUSTOMERS_API = '/api/manage/customers';
const SUPPLIERS_API = '/api/manage/suppliers';
const GOODS_API = '/api/manage/goods';

export async function query(params) {
  switch (params) {
    case 'customers':
      return request(CUSTOMERS_API);
    case 'suppliers':
      return request(SUPPLIERS_API);
    default:
      return request(GOODS_API);
  }

}